sysctl -a | grep swap
$ sudo pkill -HUP -u _windowserver
PulseAudio actually has great networking capabilities. Especially when combined with Avahi/Zeroconf it is especially easy to set up, though technically it should also be possible without.
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.254.0/24 auth-anonymous=1
to activate networked audio from 192.168.254.0-255 without needing authentication.PULSE_SERVER=192.168.254.XXX
and have the remote audio working! If not check the firewall settings, PulseAudio seems to open a random port by default.pulseaudio-module-zeroconf
and avahi
, then after installing make sure Avahi always runs by running systemctl enable --now avahi-daemon
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
// ==UserScript== | |
// @name Codeforces Data Donwloader | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-05-14 | |
// @description Download Script For Codeforces | |
// @author Sempr | |
// @match https://codeforces.com/contest/*/problems | |
// @icon https://aowuucdn.oss-accelerate.aliyuncs.com/codeforces.png | |
// @grant GM_addStyle | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jszip/3.7.1/jszip.min.js |
# frozen_string_literal: true | |
# A VCR trick to include preparation and cleanup phases for external services | |
# directly within the test files (the phases run ONLY when recording cassettes): | |
# | |
# RSpec.describe EvilMartiansAPI::Client, vcr: true do | |
# let(:client) { described_class.new } | |
# | |
# let(:developer_team_number) { 42 } | |
# |
/** | |
[강의 영상 스킵] | |
1. 재생버튼을 눌러 한양대 로딩 영상이 끝나고(약 4초) 강의가 재생된 후 F12 버튼을 눌러 개발자 콘솔을 연 뒤 console 탭으로 이동한다. | |
2. 아래 스크립트를 붙여넣는다. | |
3. 사이트에서 나갈 것이냐고 묻는 창이 뜨면 '나가기'를 누른다. | |
4. 다시 영상이 로드되면 재생 버튼을 눌러 재생하고 영상 끝으로 컨트롤 버튼을 움직여 영상 시청을 완료한다. | |
**/ |
# A minimal exmaple of flash attention implemented in Numpy | |
# Contact: bingquanxia AT qq.com | |
import unittest | |
from typing import List | |
import numpy as np | |
import torch |